package io.aircraft.modules.wms.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;


/**
 * spu信息
 *
 * @author Cycle cycle@gmail.com
 * @since 1.0.0 2022-10-04
 */
@Data
@ApiModel(value = "spu信息")
public class SpuInfoDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "商品id")
	private Long spuId;
	@ApiModelProperty(value = "商品编号")
	@Size(max = 20, message = "物料编号不能超过20位")
	private String spuNo;
	@ApiModelProperty(value = "商品名称")
	private String spuName;

	@ApiModelProperty(value = "商品描述")
	private String spuDescription;

	@ApiModelProperty(value = "商品类型")
	private String spuType;
	private String lotNo;
	private String contType;

	@ApiModelProperty(value = "上架状态[0 - 上架，1 - 下架]")
	private Integer status;
	@ApiModelProperty(value = "创建用户")
	private Long creator;
	@ApiModelProperty(value = "创建日期")
	private Date createDate;
	@ApiModelProperty(value = "更新用户")
	private Long updater;
	@ApiModelProperty(value = "更新日期")
	private Date updateDate;

	/*创建用户与更新用户的编号(代替id在界面中更友好的显示)*/
	private String creatorName;
	private String updaterName;
}